import http from '@/utils/http'

export interface ActivityQuery {
}

export interface ActivityResp {
  id: string
  name: string
  code: string
  config: string
  status: boolean
  description?: string
}

export const getActivityList = (query: ActivityQuery) => {
  return http.get<ActivityResp[]>(`/shop/activity/list`, query)
}
export function updateActivity(req: any, id: string) {
  return http.post(`/shop/activity/update/${id}`, req)
}
